import java.io.*; import java.util.*; public class StringStuff { private int s,i; private String f,l,p,vowels; public String capitalize(String name) { s = name.indexOf(" "); f = name.substring(0,1).toUpperCase() + name.substring (1,s); l = name.substring(s+1,s+2).toUpperCase() + name.substring (s+2); return f + " " + l; } public String bondify(String name) { s = name.indexOf(" "); f = name.substring(0,1).toUpperCase() + name.substring (1,s); l = name.substring(s+1,s+2).toUpperCase() + name.substring (s+2); return l + ", " + f + " " + l; } public String piglatinify(String word) { p = word.substring(0,1); i = word.length(); vowels = "aeiou"; if (vowels.contains(p)){ return word + "yay"; } else{ return word.substring(1,i)+p+"ay"; } } }